Optimal. Leaf size=59 \[ -\frac {\sqrt {\text {ArcCos}(a x)}}{4 a^2}+\frac {1}{2} x^2 \sqrt {\text {ArcCos}(a x)}-\frac {\sqrt {\pi } \text {FresnelC}\left (\frac {2 \sqrt {\text {ArcCos}(a x)}}{\sqrt {\pi }}\right )}{8 a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4726, 4810,
3393, 3385, 3433} \begin {gather*} -\frac {\sqrt {\pi } \text {FresnelC}\left (\frac {2 \sqrt {\text {ArcCos}(a x)}}{\sqrt {\pi }}\right )}{8 a^2}-\frac {\sqrt {\text {ArcCos}(a x)}}{4 a^2}+\frac {1}{2} x^2 \sqrt {\text {ArcCos}(a x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3385
Rule 3393
Rule 3433
Rule 4726
Rule 4810
Rubi steps
\begin {align*} \int x \sqrt {\cos ^{-1}(a x)} \, dx &=\frac {1}{2} x^2 \sqrt {\cos ^{-1}(a x)}+\frac {1}{4} a \int \frac {x^2}{\sqrt {1-a^2 x^2} \sqrt {\cos ^{-1}(a x)}} \, dx\\ &=\frac {1}{2} x^2 \sqrt {\cos ^{-1}(a x)}-\frac {\text {Subst}\left (\int \frac {\cos ^2(x)}{\sqrt {x}} \, dx,x,\cos ^{-1}(a x)\right )}{4 a^2}\\ &=\frac {1}{2} x^2 \sqrt {\cos ^{-1}(a x)}-\frac {\text {Subst}\left (\int \left (\frac {1}{2 \sqrt {x}}+\frac {\cos (2 x)}{2 \sqrt {x}}\right ) \, dx,x,\cos ^{-1}(a x)\right )}{4 a^2}\\ &=-\frac {\sqrt {\cos ^{-1}(a x)}}{4 a^2}+\frac {1}{2} x^2 \sqrt {\cos ^{-1}(a x)}-\frac {\text {Subst}\left (\int \frac {\cos (2 x)}{\sqrt {x}} \, dx,x,\cos ^{-1}(a x)\right )}{8 a^2}\\ &=-\frac {\sqrt {\cos ^{-1}(a x)}}{4 a^2}+\frac {1}{2} x^2 \sqrt {\cos ^{-1}(a x)}-\frac {\text {Subst}\left (\int \cos \left (2 x^2\right ) \, dx,x,\sqrt {\cos ^{-1}(a x)}\right )}{4 a^2}\\ &=-\frac {\sqrt {\cos ^{-1}(a x)}}{4 a^2}+\frac {1}{2} x^2 \sqrt {\cos ^{-1}(a x)}-\frac {\sqrt {\pi } C\left (\frac {2 \sqrt {\cos ^{-1}(a x)}}{\sqrt {\pi }}\right )}{8 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 49, normalized size = 0.83 \begin {gather*} \frac {\frac {1}{4} \sqrt {\text {ArcCos}(a x)} \cos (2 \text {ArcCos}(a x))-\frac {1}{8} \sqrt {\pi } \text {FresnelC}\left (\frac {2 \sqrt {\text {ArcCos}(a x)}}{\sqrt {\pi }}\right )}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 42, normalized size = 0.71
method | result | size |
default | \(-\frac {-2 \cos \left (2 \arccos \left (a x \right )\right ) \sqrt {\arccos \left (a x \right )}\, \sqrt {\pi }+\pi \FresnelC \left (\frac {2 \sqrt {\arccos \left (a x \right )}}{\sqrt {\pi }}\right )}{8 a^{2} \sqrt {\pi }}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \sqrt {\operatorname {acos}{\left (a x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.46, size = 71, normalized size = 1.20 \begin {gather*} \frac {\left (i + 1\right ) \, \sqrt {\pi } \operatorname {erf}\left (\left (i - 1\right ) \, \sqrt {\arccos \left (a x\right )}\right )}{32 \, a^{2}} - \frac {\left (i - 1\right ) \, \sqrt {\pi } \operatorname {erf}\left (-\left (i + 1\right ) \, \sqrt {\arccos \left (a x\right )}\right )}{32 \, a^{2}} + \frac {\sqrt {\arccos \left (a x\right )} e^{\left (2 i \, \arccos \left (a x\right )\right )}}{8 \, a^{2}} + \frac {\sqrt {\arccos \left (a x\right )} e^{\left (-2 i \, \arccos \left (a x\right )\right )}}{8 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x\,\sqrt {\mathrm {acos}\left (a\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________